package cn.maiyar.common.api;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 服务异常
 *
 * @author c.c
 */
@Getter
@Setter
@ToString
public class ServiceException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    @Getter
    private IResultCode resultCode;

    public ServiceException(IResultCode resultCode, Throwable cause) {
        super(cause);
        this.resultCode = resultCode;
    }
}
